home *** CD-ROM | disk | FTP | other *** search
- Path: ram.tiac.net!user
- From: ram@tiac.net (robert a. moeser)
- Newsgroups: comp.lang.c
- Subject: Re: Tradition or what?
- Date: Wed, 14 Feb 1996 20:10:53 -0500
- Organization: disorganized
- Message-ID: <ram-1402962010530001@ram.tiac.net>
- References: <1996Feb13.115611.73989@cc.usu.edu>
- NNTP-Posting-Host: ram.tiac.net
-
- In article <1996Feb13.115611.73989@cc.usu.edu>, erik@cc.usu.edu (Erik van
- Renselaar) wrote:
-
- > Can anyone tell me what the use is of returning
- > the same value for the function and one of the
- > output parameters, like it is done in strcpy?
- > Why return a string for the function if the
- > result is in its first parameter as well?
-
- it can be handy when the result of the application of
- a function is to be used as an argument in another
- function call.
-
- like
-
- i = strlen(strcat(strcpy(tempName, rawName), ".dat"));
-
- which i don't especially care for, but you see the idea.
-
- -- rob
-